package cn.knet.sp.ncrm.modules.sys.utils;

import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.StringUtils;

/**
 * Created by IntelliJ IDEA.
 * User: flamingo
 * Date: 12-5-2
 * Time: 下午2:44
 * To change this template use File | Settings | File Templates.
 */
public class CrmCommonUtils {
    
     public static String PasswordEncode(String password){
         if(StringUtils.isBlank(password)){
             return "";
         }
         return DigestUtils.md5Hex(password);
     }
    
}
